2405dc572e1ff9ec6d68c1deafeae06ac873b11d,plugins/groovy/src/org/jetbrains/plugins/groovy/formatter/processors/GroovySpacingProcessor.java,GroovySpacingProcessor,getSpacing,#GroovyBlock#GroovyBlock#,21

Before Change



/********** punctuation marks ************/
    // For dots, commas etc.
    if ((NO_SPACING_NO_NEWLINE_BEFORE.contains(rightNode.getElementType())) ||
            (mCOLON.equals(rightNode.getElementType()) &&
                    !(rightNode.getPsi().getParent() instanceof GrConditionalExpression))) {
      return NO_SPACING;

After Change


      return NO_SPACING_WITH_NEWLINE;
    }
    // For type parameters
    if ((mLT.equals(leftNode.getElementType()) || mGT.equals(rightNode.getElementType())) &&
            leftNode.getPsi().getParent() != null &&
            leftNode.getPsi().getParent() instanceof GrTypeParameters) {
      return NO_SPACING_WITH_NEWLINE;
    }

    if (rightNode.getPsi() != null && rightNode.getPsi() instanceof GrTypeParameters) {
      return NO_SPACING_WITH_NEWLINE;
    }

/********** punctuation marks ************/
    // For dots, commas etc.
    if ((PUNCTUATION_SIGNS.contains(rightNode.getElementType())) ||
            (mCOLON.equals(rightNode.getElementType()) &&
                    !(rightNode.getPsi().getParent() instanceof GrConditionalExpression))) {
      return NO_SPACING;